package com.designPattern.p04AbstractFactory.instance;

/**
 * @author: luhd
 * @create: 2021-09-05
 */
public class LClient {
    public static void main(String[] args) {
        AUser user = new AUser();
        BType type = new BType();

        JMysqlFactory factory = new JMysqlFactory();

        CIUser iu = factory.createUser();
        iu.Insert(user);
        iu.getUser(1);

        DIType it = factory.createType();
        it.Insert(type);
        it.getType(1);
    }
}
